<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>同咨科技-商户后台</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../../static/css/weadmin.css">
    <link href="../../lib/layui/css/layui.css" rel="stylesheet">

    <script type="text/javascript" src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="module" src="../components/use-body.js"></script>



    <link href="../../static/css/team.css" rel="stylesheet">
    <link href="../../static/css/uselay.css" rel="stylesheet">
</head>

<body>
    <use-body>
        <div class="page-body team">

            <!-- 左边菜单 -->
            <div class="side">
                <span class="layui-breadcrumb breadcrumb" lay-separator="/">
                    <a><i title="首页" class="iconfont use-more"></i></a>
                    <a><cite>项目团队</cite></a>
                </span>

                <div class="layui-panel">
                    <ul class="layui-menu" id="demo-menu">

                        <li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: false}">
                            <ul>
                                <li>
                                    <div class="layui-menu-body-title">全部项目小组</div>
                                </li>
                                <li>
                                    <div class="layui-menu-body-title">我创建的</div>
                                </li>
                                <li>
                                    <div class="layui-menu-body-title">我加入的</div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 主体 -->
            <div class="team-main">
                <div class="team-info">
                    <div class="left">
                        <div class="tag">
                            <div class="inside">小组</div>
                        </div>
                        <div class="text">
                            <span>项目小组名称</span>
                            <p>
                                在中台产品的研发过程中，会出现不同的设计规范和实现方式，但其中往往存在很多类似的页面和组件，这些类似的组件会被抽离成一套标准规范。
                            </p>
                        </div>
                    </div>

                    <div class="right">
                        <button class="layui-btn layui-btn-primary layui-btn-radius"
                            style="margin-left: 10px;"
                            lay-submit
                            lay-filter="demo-table-search">
                            <i class="iconfont use-edit"></i>编辑小组
                        </button>
                        <button class="layui-btn layui-btn-radius" lay-submit
                            lay-filter="demo-table-search">
                            <i class="iconfont use-exit"></i>解散小组
                        </button>
                    </div>
                </div>
                <div class="page-border">
                    <!-- 工具栏 -->
                    
                    <div class="layoutLR" style="">
                        <div>
                            <strong class="layui-font-22">小组成员</strong>
                        </div>
                        <div>
                            <button class="layui-btn layui-btn-radius" lay-submit lay-filter="demo-table-search">
                                <i class="iconfont  use-search"></i>邀请成员
                            </button>
                        </div>
                    </div>
                    <!--  表格 -->
                    <table class="layui-hide" id="ID-table-demo-data"></table>
                </div>
            </div>

        </div>
    </use-body>
</body>
<!-- 工具栏模板 -->
<script type="text/html" id="operate-btn">
    <div class="operate-btn">
      <i class="iconfont use-delete layui-btn btn-text"></i>
    </div>
  </script>
<script>
    layui.use('table', function () {
        var $ = layui.$;
        var table = layui.table;
        var util = layui.util;
        var form = layui.form;
        var upload = layui.upload;
        var laydate = layui.laydate;
        // 已知数据渲染
        var inst = table.render({
            elem: '#ID-table-demo-data',
            cols: [[ //标题栏
                { field: 'id', title: '序号', align: 'center' },
                { field: 'username', title: '成员姓名', align: 'center' },
                { field: 'username', title: '所属公司', align: 'center', },
                { field: 'username', title: '加入时间', align: 'center' },
                { field: 'username', title: '最后登录时间', align: 'center' },
                { field: 'username', title: '邀请人', align: 'center' },
                { field: 'username', title: '操作', align: 'center', toolbar: '#operate-btn' },
            ]],
            data: [{ // 赋值已知数据
                "id": "10001",
                "username": "张三1",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "116"
            }, {
                "id": "10002",
                "username": "张三2",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "12",
                "LAY_CHECKED": true
            }, {
                "id": "10003",
                "username": "张三3",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "65"
            }, {
                "id": "10004",
                "username": "张三4",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "777"
            }, {
                "id": "10005",
                "username": "张三5",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "86"
            }, {
                "id": "10006",
                "username": "张三6",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "12"
            }, {
                "id": "10007",
                "username": "张三7",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "16"
            }, {
                "id": "10008",
                "username": "张三8",
                "sex": "男",
                "city": "浙江杭州",
                "sign": "人生恰似一场修行",
                "experience": "106"
            }],
            skin: 'nob', // 表格风格
            //even: true,
            maxHeight: 'full-260',
            page: { // 支持传入 laypage 组件的所有参数（某些参数除外，如：jump/elem） - 详见文档
                layout: ['count', 'prev', 'page', 'next', 'limit',], //自定义分页布局
            },

            limit: 10 // 每页默认显示的数量
        });

        util.on('lay-on', {
            'add-dialog': function () {
                layer.open({
                    type: 1,
                    shade: false, // 不显示遮罩
                    content: $('#ID-test-layer-wrapper'), // 捕获的元素
                    title: '新建任务',
                    closeBtn: 1,
                    end: function () {
                        // layer.msg('关闭后的回调', {icon:6});
                    }
                });
            },
        })

        upload.render({
            elem: '#ID-upload-demo-files', // 绑定多个元素
            url: '', // 此处配置你自己的上传接口即可
            accept: 'file', // 普通文件
            done: function (res) {
                layer.msg('上传成功');
                console.log(res);
            }
        });

        laydate.render({
            elem: '.laydate'
        });
    });
</script>

</html>